﻿<!--{inc(header.view.html)}-->


<div class="header">    
  
                       <div class="nav">
	                                 <ul id="nav_list">
                                                 <li><a href="index.php?app=nav&act=add" target="mainframe">新增导航</a></li>
                                                 <li><a href="index.php?app=nav&act=index"  target="mainframe">导航列表</a></li>

	                                 </ul>
                       </div>
                
</div>



<div id="content">
                   <h1>修改导航栏</h1>

                  <div>
                                    <div class="tips_show"><img  src="{$web_view_dir}style/images/light.gif" align="absmiddle" /> <b>提示: </b>
                                                                  <span ></span>
                                    </div>


                             <form action="?app=nav&act=editpost" method="post">

                                   <table align="center" width="100%" cellpadding="4" cellspacing="0" border="0" class="table_style">

								   
								               <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
				<td width="20%"><span class="bold">上级分类：</span></td>
				<td>                                
                    <select name="data[parent_id]" >
				    <option value="0">顶级分类</option>
                         {$catgystr}
					</select>       
                                
               </td>
			</tr>    
                                   
                            
                                 <input type="hidden" name="data[lang]" value="zh-cn" />                                     
                                   
                                   <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">

	                                      <td width="30%">链接文字:</td>
	                                      <td><input type="text" name="data[title]" value="{$navdata.name}" maxlength="30" /></td>
                                   </tr>
                                   <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	                                      <td>链接提示文字(选填):</td>
	                                      <td><input type="text" name="data[config][alt]" value="{$navdata.config.alt}" maxlength="50" /></td>
                                   </tr>
                                   <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	                                      <td>链接地址(如果是绝对地址，请以 http:// 或 https:// 开头):</td>

	                                      <td>
                                          <input type="text" name="data[url]" size="50"  maxlength="80"  value="{$navdata.link}"  id="keyword_m" />
    	                                 <select name="select4" onChange="MM_keyword2(this,'keyword_m')" > 
										 <option  value="">请选择...</option> 
                                         <option  value="{SITE_URL}/?app=phpscup">|--主页</option>
										 
                                         <!--{foreach($module_cat_data as $_key => $_value )}--> 
                                         <option  value="{SITE_URL}/?app={$_key}" >|--{$_value.alias}(首页)</option>										 
                                             <!--{foreach($_value.catdata as $_key1 => $_value1 )}-->										  
		                                     <!--{if ($_value1.cat_name)}--> 
                                             <option  value="{SITE_URL}/?app={$_key}&cat={$_value1.cat_id}" style="color:red;">|--|--{$_value1.str_pad}{$_value1.cat_name}</option>
                                              <!--{/if}--> 
		                                      <!--{/foreach}--> 
		                                 <!--{/foreach}--> 										 
										                                        
                                          
                                         <option  value="{SITE_URL}/?app=user&act=index">|--登入页</option> 
                                         <option  value="{SITE_URL}/?app=user&act=reg">|--注册页</option> 
                                      
                                         <optgroup label='|--单独页面'></optgroup>
                                         <!--{foreach($lw_data as $_key => $_value )}-->
                                         <option  value="{SITE_URL}/{$_value.filepath}" style="color:red;">|--|--{$_value.name}</option>                                           
                                          <!--{/foreach}--> 

                                         <optgroup label='|--专题页面'></optgroup>
                                         <!--{foreach($subject_data as $_key => $_value )}-->
                                         <option  value="{SITE_URL}/{$_value.filepath}" style="color:red;">|--|--{$_value.name}</option>                                           
                                          <!--{/foreach}--> 										  
										  
										  
	                                     </select>	                                      
                                          
  <SCRIPT LANGUAGE="JavaScript">
<!--

function get_obj(obj){
   return document.getElementById(obj);
}

function MM_keyword2(selObj,str){ //v3.0
  va=selObj.options[selObj.selectedIndex].value
  if (va!='')
  {

		get_obj(str).value=va;

  } 
}

//-->
</script>  											  
										  
										  
										  
										  
										  
										  
										  
										  </td>
                                  </tr>
                                  <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	                                      <td>链接打开目标(默认为当前浏览窗口):</td>
	                                      <td>
	                                      <select name="data[config][target]">
		                                       <option value="_self" <?php if ("_self" ==$navdata.config.target) { ?> selected <?php } ?> >_self</option>
		                                       <option value="_blank" <?php if ("_blank" ==$navdata.config.target) { ?>selected <?php } ?>>_blank</option>
		                                       <option value="_parent" <?php if ("_parent" ==$navdata.config.target) { ?>selected <?php } ?>>_parent</option>
		                                       <option value="_top" <?php if  ("_top" ==$navdata.config.target) { ?>selected <?php } ?>>_top</option>
	                                     </select>
	                                     </td>
                                 </tr>
                                 <tr onMouseOut="this.className=''" onMouseOver="this.className='bgcolor'">
	                                     <td>导航位置(系统的顶部或底部):</td>
	                                     <td><input type="radio" name="data[position]" value="top" id="top"  <?php if ("top" ==$navdata.whree) { ?> checked <?php } ?>  /><label for="top">顶部</label>&nbsp;<input type="radio" name="data[position]" value="bottom" id="bottom"  <?php if  ("bottom" ==$navdata.whree) { ?> checked <?php } ?> /><label for="bottom">底部</label></td>

                                </tr>
                                <tr >
	                                     <td>&nbsp;</td>
	                                     <td><input type="hidden" name="data[id]" value="{$navdata.nav_id}" /><input type="submit" class="buton" value=" 提 交 " /></td>
                                </tr>
                                </table>
                                </form>

                 </div>

</div>



<!--{inc(footer.view.html)}-->